package spring.IoCDemo;

public class Son {

    private Seller seller;

    public void setSeller(Seller seller){
        this.seller = seller;
    }
    //买橘子
    public void buyOrange() {
        seller.sell();
    }

}
